﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TomShane.Neoforce.Controls;

namespace XGame.Class
{
    class ToolIcon:ImageBox
    {
        public enum Type
        {
            Head, Neck, Body, Back, Wrist, Hand, Item, Skill
        }
        public static Type[] GetAllType()
        {
            return GetAllType(null);
        }
        public static Type[] GetAllType(Type exceptType)
        {
            return GetAllType(new Type[] { exceptType });
        }
        public static Type[] GetAllType(Type[] exceptTypes)
        {
            int exceptcount = 0;
            if (exceptTypes != null)
                exceptcount = exceptTypes.Count();
            int count = Enum.GetNames(typeof(Type)).Count() - exceptcount;
            Type[] types = new Type[count];
            int i = 0;
            foreach (Type val in Enum.GetValues(typeof(Type)))
            {
                if (!exceptTypes.Contains(val))
                    types[i++] = val;
            }
            return types;
        }
        public Type IconType;
        public string IconName;
        public string IconDescription;
        public ToolIcon(Manager Manager)
            : base(Manager)
        {
        }
        public ToolIcon(Manager Manager, Type iconType, string iconName, string iconDescription)
            : base(Manager)
        {
            this.IconType = iconType;
            this.IconName = iconName;
            this.IconDescription = iconDescription;
        }
    }
}
